package org.jeecg.modules.jd.util;

import cn.hutool.http.HttpUtil;
import org.jeecg.modules.pdd.util.DingDanXiaUtil;
import org.web3j.crypto.Hash;

import java.util.HashMap;
import java.util.Map;

public class GoodCategoryUtil {

    public static String getCategoryData() {
        String url = "http://api.tbk.dingdanxia.com/jd/goods_category";
        Map<String, Object> map = new HashMap<>();
        map.put("apikey",DingDanXiaUtil.dingdanxia_appkey);
        map.put("parentId",1315);
        map.put("grade",1);
        String resultStr = "";
        try {
            resultStr =    HttpUtil.post(url,map);
          //  resultStr = HttpUtil.get(urlJwtUtil);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return resultStr;
    }


    public static void main(String[] args) {
        System.out.println(getCategoryData());
    }
}
